﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WPFDevelopers.Samples.ViewModels
{
    public class MemberManageModelVM : ViewModelBase
    {
        /// <summary>
        /// 姓名
        /// </summary>
        private string _name;
       
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { _name = value; 
                this.NotifyPropertyChange("Name");
                this.RaisePropertyChanged("Name");
                CurrentPageChanged(); 
            }
        }

        /// <summary>
        /// 主键
        /// </summary>
        private string _id;

        /// <summary>
        /// 主键
        /// </summary>
        public string Id
        {
            get { return _id; }
            set { _id = value; this.NotifyPropertyChange("Id"); CurrentPageChanged(); }
        }

        /// <summary>
        /// 会员类型
        /// </summary>
        private string _memberType;

        /// <summary>
        /// 会员类型
        /// </summary>
        public string MemberType
        {
            get { return _memberType; }
            set { _memberType = value; this.NotifyPropertyChange("MemberType"); CurrentPageChanged(); }
        }

        /// <summary>
        /// 出生年月日
        /// </summary>
        private string _birthday;

        /// <summary>
        /// 出生年月日
        /// </summary>
        public string Birthday
        {
            get { return _birthday; }
            set { _birthday = value; this.NotifyPropertyChange("Birthday"); CurrentPageChanged(); }
        }

        /// <summary>
        /// 创建日期
        /// </summary>
        private string _createTime;

        /// <summary>
        /// 创建日期
        /// </summary>
        public string CreateTime
        {
            get { return _createTime; }
            set { _createTime = value; this.NotifyPropertyChange("CreateTime"); CurrentPageChanged(); }
        }



        /// <summary>
        /// 余额
        /// </summary>
        private double _money;
        /// <summary>
        /// 余额
        /// </summary>
        public double  Money
        {
            get { return _money; }
            set { _money = value; this.NotifyPropertyChange("Money"); CurrentPageChanged(); }
        }

        

        /// <summary>
        /// 卡号
        /// </summary>
        private string _cardNo;

        /// <summary>
        /// 卡号
        /// </summary>
        public string CardNo
        {
            get { return _cardNo; }
            set { _cardNo = value; this.NotifyPropertyChange("CardNo"); CurrentPageChanged(); }
        }

        /// <summary>
        /// 手机号
        /// </summary>
        private string _phone;

        public MemberManageModelVM()
        {

        }

        /// <summary>
        /// 手机号
        /// </summary>
        public string Phone
        {
            get { return _phone; }

            set { _phone = value;  this.NotifyPropertyChange("Phone"); CurrentPageChanged(); }
        }


        private void CurrentPageChanged()
        {

        }
    }
}
